package com.axend.lib_base.bean

enum class SpeciesType constructor(val index:Int){
    DOG(0),
    CAT(1);

    companion object{
        /**
         * 根据index获取
         */
        fun getSpeciesType(index:Int):SpeciesType{
            for (item in values()){
                if (item.index == index){
                    return item
                }
            }
            return DOG
        }
    }

}